#include <stdio.h>
int main()
{
	int a,b,c;
	scanf("%d ",&c);
	printf("%d ",c%10);
		a=c/10;
	printf("%d ",a%10);
	    b=a/10;
	printf("%d\n",b%10);
	return 0;
}
